package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购明细对象 constract_purchase
 * 
 * @author ruoyi
 * @date 2022-04-04
 */
public class ConstractPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String name;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 合同额 */
    @Excel(name = "合同额")
    private Double money;

    /** 已支付额 */
    @Excel(name = "已支付额")
    private Double payMoney;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 签订时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签订时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signTime;

    /** 登记时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登记时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signupTime;

    /** 合同主键 */
    @Excel(name = "合同主键")
    private Long constractId;

    /** 分类：总院采购，分院采购 */
    @Excel(name = "分类：总院采购，分院采购")
    private String type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }
    public void setMoney(Double money)
    {
        this.money = money;
    }

    public Double getMoney()
    {
        return money;
    }
    public void setPayMoney(Double payMoney)
    {
        this.payMoney = payMoney;
    }

    public Double getPayMoney()
    {
        return payMoney;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setSignTime(Date signTime) 
    {
        this.signTime = signTime;
    }

    public Date getSignTime() 
    {
        return signTime;
    }
    public void setSignupTime(Date signupTime) 
    {
        this.signupTime = signupTime;
    }

    public Date getSignupTime() 
    {
        return signupTime;
    }
    public void setConstractId(Long constractId) 
    {
        this.constractId = constractId;
    }

    public Long getConstractId() 
    {
        return constractId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("supplier", getSupplier())
            .append("money", getMoney())
            .append("payMoney", getPayMoney())
            .append("status", getStatus())
            .append("signTime", getSignTime())
            .append("signupTime", getSignupTime())
            .append("constractId", getConstractId())
            .append("type", getType())
            .toString();
    }
}
